-
Notifications
You must be signed in to change notification settings - Fork 78
feat(idl): indirect csr support #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This lets us test idl for any config from the command line: ./do test:idl qc_iu
This does three things:
* Remove `CSR[expression]` syntax for direct CSR reads
** `CSR[csr_name]` still works
* Adds `direct_csr_lookup`/`csr_{hw,sw}_{read,write}` functions to access a
CSR with a direct address
* Adds `indirect_csr_lookup` to access an indirect CSR with an indirect address
This adds a boolean writeable field to the CSR schema. We need this for two reasons: * Indirect CSRs that have no address convention * CSRs like mscontext that don't follow the direct address convention
This lets us test idl for any config from the command line: ./do test:idl qc_iu
This does three things:
* Remove `CSR[expression]` syntax for direct CSR reads
** `CSR[csr_name]` still works
* Adds `direct_csr_lookup`/`csr_{hw,sw}_{read,write}` functions to access a
CSR with a direct address
* Adds `indirect_csr_lookup` to access an indirect CSR with an indirect address
This adds a boolean writeable field to the CSR schema. We need this for two reasons: * Indirect CSRs that have no address convention * CSRs like mscontext that don't follow the direct address convention
ThinkOpenly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spell-o in that first comment "enviornment".
Also, if you're going to edit that commit message, please modify the example to:
For example:
./do test:idl qc_ui
This PR is a good squash candidate. I've updated the PR description, which I think gets used as the squash commit message. |
done |
|
@ThinkOpenly, this one should be ready modulo any requests from you. |
Signed-off-by: Derek Hower <[email protected]>
CSR[expression]syntax for CSR direct address lookuptest:idl.For example:
closes #589